package com.chj.chuji.tijie14;

//https://blog.csdn.net/V5ZSQ/article/details/82917187
//https://ac.nowcoder.com/acm/contest/156
public class Football {
	public static void main(String[] args) {

		System.out.println(2 / 100);
		System.out.println(2 % 100);
		int a = 2;
		int b = 4;
		int[] x = new int[] { 100, 50, 20, 10, 5, 2, 1 };
		int[] y = new int[] { 50, 20, 10, 5, 2, 1 };
		for (int i = 0; i < x.length; i++) {
			int temp = a / x[i];
			System.out.print(i + ":" + temp + " ");
			a %= x[i];
		}

		for (int i = 0; i < y.length; i++) {
			int temp = b / y[i];
			System.out.print(i + ":" + temp + " ");
			if (i == 5) {
				System.out.println();
			}
			b %= y[i];
		}
	}
}

//#include<cstdio>
//using namespace std;
//int T,a,b,x[10]={100,50,20,10,5,2,1},y[10]={50,20,10,5,2,1};
//int main()
//{
//	scanf("%d",&T);
//	while(T--)
//	{
//		scanf("%d%d",&a,&b);
//		for(int i=0;i<7;i++)
//		{
//			printf("%d ",a/x[i]);
//			a%=x[i];
//		}
//		for(int i=0;i<6;i++)
//		{
//			printf("%d%c",b/y[i],i==5?'\n':' ');
//			b%=y[i];
//		}
//	}
//	return 0;
//}